<template>
    <div class=''>
        <swipe></swipe>
        <shopping :shoplist="list"></shopping>
    </div>
</template>

<script>
import swipe from "../../components/swipe.vue"
import shopping from "../../components/shopping.vue"
    export default {
        data() {
            return {
                list:[],
            };
        },
        components:{
            swipe,
            shopping
        },
        mounted() {
            this.$axios
                .post("/product/getHotProduct", {
                    categoryName: ["电视机", "空调", "洗衣机", "保护套"],
                }).then((res) => {
                    console.log(res)
                    this.list = res.data.Product
                    console.log(this.list)
                })
        },
        methods: {

        },
    };
</script>

<style lang='scss'>
    
</style>